package com.tsunami.authority.dto.auth;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author lx
 * @date 2021-11-01 17:21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@Schema(description = "角色分配")
public class UserRoleSaveDTO implements Serializable {
    @Schema(description = "角色ID")
    @NotNull(message = "角色ID不能为空")
    private Long roleId;
    /**
     * 用户ID
     */
    @Schema(description = "用户IDS")
    @Size(min = 1, message = "用户不能为空")
    private String userIdList;

    @Schema(description = "所属应用")
    private String appCode;
}
